package com.tcl.logoidentify.exception;

public class RestErrorCode {

    public final static int REST_SUCCESS_CODE = 1000;
    public final static String REST_SUCCESS_MSG = "success";

    public final static int REST_PARAMETER_ERROR_CODE = 1001;
    public final static String REST_INPUTSOURCETYPE_REQUIRED_ERROR_MSG = "input parameter error, parameter inputsource_type required";
    public final static String REST_CLIENTFINGERPRINT_REQUIRED_ERROR_MSG = "input parameter error, parameter client_fingerprint required";
    public final static String REST_CREATETIMES_REQUIRED_ERROR_MSG = "input parameter error, parameter create_times required";
    public final static String REST_USERID_REQUIRED_ERROR_MSG = "input parameter error, parameter user_id required";
    public final static String REST_MESSAGEID_REQUIRED_ERROR_MSG = "input parameter error, parameter message_id required";
    public final static String REST_METHOD_REQUIRED_ERROR_MSG = "input parameter error, parameter method required";
    public final static String REST_TYPE_REQUIRED_ERROR_MSG = "input parameter error, parameter type required";
    
    public final static String REST_CREATETIMES_ERROR_MSG = "input parameter error, parameter 'create_times' is illegal)";
    public final static String REST_CLIENTFINGERPRINT_ERROR_MSG = "input parameter error, the length of 'client_fingerprint' is not 22 bytes";
    public final static String REST_MESSAGEID_ERROR_MSG = "input parameter error, the value of 'message_id' need 32 chars";
    public final static String REST_METHOD_ERROR_MSG = "input parameter error, parameter 'method' expect 'name' or 'memo'";
    public final static String REST_TYPE_ERROR_MSG = "input parameter error, parameter 'type' expect 'image' or 'audio'";

    public final static int REST_SYSTEM_ERROR_CODE = 1002;
    public final static String REST_SYSTEM_ERROR_MSG = "system error";
    
    public final static int REST_FINGERPRINT_ERROR_CODE = 1003;
    public final static String REST_FINGERPRINT_ERROR_MSG = "black fingerprint";
}
